﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using System.Workflow.Runtime.Tracking;
using System.Workflow.ComponentModel;
using OpenComposite.Repository.Tracking;

namespace OpenComposite.Repository.Forms.TrackingMonitor
{
	public partial class TrackedBusinessObjects : DockContent
	{
		public TrackedBusinessObjects()
		{
			InitializeComponent();
		}

		internal void LoadActivity(TrackedActivityInstance instance)
		{
			if ( instance == null ) return;
			if ( instance.Instance.Body.Count == 0 ) return;
			foreach ( TrackingDataItem dataItem in instance.Instance.Body ) {
				if ( dataItem.FieldName == "Name" ) continue;
				Activity act = dataItem.Data as Activity;
				if ( act == null ) continue;
			}
		}
	}
}
